﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using EntitiesContext;

namespace DAL
{
    public class DBAccess
    {
        public Group AddGroup(Group newGroup)
        {
            using (TransliteratorDBEntities context = new TransliteratorDBEntities())
            {
                context.Groups.AddObject(newGroup);
                context.SaveChanges();
            }
            return newGroup;
        }
    }
}
